﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data.Mapping.Marketing {
  
    public partial class CourseMap
       : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Course> {
        public CourseMap() {
            ToTable("mc_Course", "dbo");

            HasKey(t => t.Id);
            Property(t => t.Id)
                .HasColumnName("Id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
         
        }
    }
}
